import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("idx_agent_id", ["apartmentAgentId"], {})
@Entity("apartment_agent_contact", { schema: "cbox" })
export class ApartmentAgentContact {
  @PrimaryGeneratedColumn({ type: "int", name: "id" })
  id: number;

  @Column("varchar", { name: "type", length: 16 })
  type: string;

  @Column("varchar", { name: "data", length: 255 })
  data: string;

  @Column("int", { name: "apartment_agent_id" })
  apartmentAgentId: number;
}
